package adv.i31.RobotMin3d;

import android.bluetooth.BluetoothDevice;

/** 
 * Wraps a BluetoothDevice.
 * Overrides the toString() method to allow the name of the device
 * to be visible instead of the MAC address when using an ArrayAdapter.
 * @author Max
 */
public class RobotDevice
{
	public BluetoothDevice	mDevice;

	@Override
	public String toString()
	{
	//	return Long.toString(System.currentTimeMillis());
		return mDevice.getName();
	}
	
	public RobotDevice(BluetoothDevice d) {
		mDevice = d;
	}

	@Override
	public boolean equals(Object o)
	{
		return mDevice.equals( ((RobotDevice)o).mDevice);
	}
}
